context-sensitive grammar

Terms from Artificial Intelligence: humans at the heart of algorithms

A context-sensitive grammar has rules where the expansion of a non-terminal may depend on the tokens before or after.

Defined on pages 298, 298

Used on pages 291, 298, 302